/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package database;

/**
 *
 * @author Hung
 */
public class ListItem {
//    public static int NUMBER_ITEM = 4;

//    private static String[] itemsName = {"Thịt chó giải đen", "Karaoke", "Massage", "Nhẫn cưới"};
//    private static int[] itemsPrice = {150, 100, 50, 200};
//    private static int[] itemsLuckPercent = {40, 20, 10, 0};
//    private static int[] itemTimeLimit = {24, 24, 24, 24};
    private int id;
    private String name;
    private int luckyPercent;
    private int timeLimit;
    private int price;

    public void setItemId(int id) {
        this.id = id;
        switch (id) {
            case 0:
                name = "Thịt chó giải đen";
                break;
            case 1:
                name = "Karaoke";
                break;
            case 2:
                name = "Massage";
                break;
            case 3:
                name = "Nhẫn cưới";
                break;
        }
    }

    public void setItemname(String name) {
        this.name = name;
    }

    public void setLuckyPercent(int percent) {
        this.luckyPercent = percent;
    }

    public void setTimeLimit(int limit) {
        this.timeLimit = limit;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getItemPrice() {
        return this.price;
    }

    public int getItemId() {
        return this.id;
    }

    public int getTimeLimit() {
        return this.timeLimit;

    }

    public int getLuckyPercent() {
        return this.luckyPercent;
    }

    public String getName() {
        return this.name;
    }
//    public static int getItemPrice(int id) {
//        return itemsPrice[id];
//    }
//
//    public static int getItemLuckPercent(int id) {
//        return itemsLuckPercent[id];
//    }
//
//    public static void setItemName(int id, String name) {
//        itemsName[id] = name;
//    }
//
//    public static void setItemPrice(int id, int price) {
//        itemsPrice[id] = price;
//    }
//
//    public static void setItemLuckPercent(int id, int percent) {
//        itemsLuckPercent[id] = percent;
//    }
//
//    public static int getItemTimeLimit(int id) {
//        return itemTimeLimit[id];
//    }
//
//    public static void setItemTimeLimit(int id, int time) {
//        itemTimeLimit[id] = time;
//    }
}
